package cn.qayy.po;

import java.util.Date;
import cn.qayy.utils.DateUtils;

/**
 * 
 * 
 * @author wangyu
 * 
 * @date 2018-12-14
 */
public class PolicyLog{

    private Long logId;

    private String logDataer;

    private String logTime;

    private String logType;
    
    private String province="";//省份
	private String city="";//地市
	private String qudaolie="";//条线
	private String terminaltype="";//渠道
	private String product="";//品种
	private String page="";//包装
	private String client="";//客户
	private String daibiao="";//代表
	private String mgr="";//经理
	private String qsterminal="";//入货乙方
	private String terminal="";//协议备注
	private String mode="";//模式
	private String zijingchengben="";//资金成本
	private String jsmode="";//结算方式
	private String kaipiaojia="";//开票价
	private String tuiguangmoney="";//1服务费（基础）
	private String fapiaomoney="";//3服务费（财务）
	private String daibiaomoney="";//4服务费（开发）
	private String kaifajianlishixiang="";//5开发奖励
	private String kaifaMgr="0";//业务员开发奖励
	private String xieyibiaogang="";//协议标杆
	private String kaifashixiang="";//开发时限
	private String xieyistarttime="";//开始时间
	private String xieyiendtime="";//结束时间
	private String guihuanriqi="";//协议状态
	private String kaipiaofangshi="";//票据方案
	private String shoukuangren="";//收款人
	private String kaihuhang="";//开户行
	private String zhanghao="";//账号
	//修订标识 N E
	private Integer id;
	//批量导入的模板：##############################################
	
	//标准测算价、中标价，额外通过表录入
	private String biaozhuncsdj="0";//标准测算价
	private String zhongbiaojia="0";//中标价
	/*** 系统计算字段**/
	private String dijia="0";//协议测算价
	private String today=DateUtils.dateToString(new Date(),"yyyy/MM/dd HH:mm:ss");//协议录入日期
	private String zhongdiantubie="";//录入员
	private String basicpolicy="0";//基础政策

	private Date mtime=new Date();//更新时间
    
    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public String getLogDataer() {
        return logDataer;
    }

    public void setLogDataer(String logDataer) {
        this.logDataer = logDataer == null ? null : logDataer.trim();
    }

    public String getLogTime() {
        return logTime;
    }

    public void setLogTime(String logTime) {
        this.logTime = logTime;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType == null ? null : logType.trim();
    }
    
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getQudaolie() {
		return qudaolie;
	}

	public void setQudaolie(String qudaolie) {
		this.qudaolie = qudaolie;
	}

	public String getTerminaltype() {
		return terminaltype;
	}

	public void setTerminaltype(String terminaltype) {
		this.terminaltype = terminaltype;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

	public String getDaibiao() {
		return daibiao;
	}

	public void setDaibiao(String daibiao) {
		this.daibiao = daibiao;
	}

	public String getMgr() {
		return mgr;
	}

	public void setMgr(String mgr) {
		this.mgr = mgr;
	}

	public String getQsterminal() {
		return qsterminal;
	}

	public void setQsterminal(String qsterminal) {
		this.qsterminal = qsterminal;
	}

	public String getTerminal() {
		return terminal;
	}

	public void setTerminal(String terminal) {
		this.terminal = terminal;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public String getZijingchengben() {
		return zijingchengben;
	}

	public void setZijingchengben(String zijingchengben) {
		this.zijingchengben = zijingchengben;
	}

	public String getJsmode() {
		return jsmode;
	}

	public void setJsmode(String jsmode) {
		this.jsmode = jsmode;
	}

	public String getKaipiaojia() {
		return kaipiaojia;
	}

	public void setKaipiaojia(String kaipiaojia) {
		this.kaipiaojia = kaipiaojia;
	}

	public String getTuiguangmoney() {
		return tuiguangmoney;
	}

	public void setTuiguangmoney(String tuiguangmoney) {
		this.tuiguangmoney = tuiguangmoney;
	}

	public String getFapiaomoney() {
		return fapiaomoney;
	}

	public void setFapiaomoney(String fapiaomoney) {
		this.fapiaomoney = fapiaomoney;
	}

	public String getDaibiaomoney() {
		return daibiaomoney;
	}

	public void setDaibiaomoney(String daibiaomoney) {
		this.daibiaomoney = daibiaomoney;
	}

	public String getKaifajianlishixiang() {
		return kaifajianlishixiang;
	}

	public void setKaifajianlishixiang(String kaifajianlishixiang) {
		this.kaifajianlishixiang = kaifajianlishixiang;
	}

	public String getKaifaMgr() {
		return kaifaMgr;
	}

	public void setKaifaMgr(String kaifaMgr) {
		this.kaifaMgr = kaifaMgr;
	}

	public String getXieyibiaogang() {
		return xieyibiaogang;
	}

	public void setXieyibiaogang(String xieyibiaogang) {
		this.xieyibiaogang = xieyibiaogang;
	}

	public String getKaifashixiang() {
		return kaifashixiang;
	}

	public void setKaifashixiang(String kaifashixiang) {
		this.kaifashixiang = kaifashixiang;
	}

	public String getXieyistarttime() {
		return xieyistarttime;
	}

	public void setXieyistarttime(String xieyistarttime) {
		this.xieyistarttime = xieyistarttime;
	}

	public String getXieyiendtime() {
		return xieyiendtime;
	}

	public void setXieyiendtime(String xieyiendtime) {
		this.xieyiendtime = xieyiendtime;
	}

	public String getGuihuanriqi() {
		return guihuanriqi;
	}

	public void setGuihuanriqi(String guihuanriqi) {
		this.guihuanriqi = guihuanriqi;
	}

	public String getKaipiaofangshi() {
		return kaipiaofangshi;
	}

	public void setKaipiaofangshi(String kaipiaofangshi) {
		this.kaipiaofangshi = kaipiaofangshi;
	}

	public String getShoukuangren() {
		return shoukuangren;
	}

	public void setShoukuangren(String shoukuangren) {
		this.shoukuangren = shoukuangren;
	}

	public String getKaihuhang() {
		return kaihuhang;
	}

	public void setKaihuhang(String kaihuhang) {
		this.kaihuhang = kaihuhang;
	}

	public String getZhanghao() {
		return zhanghao;
	}

	public void setZhanghao(String zhanghao) {
		this.zhanghao = zhanghao;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getBiaozhuncsdj() {
		return biaozhuncsdj;
	}

	public void setBiaozhuncsdj(String biaozhuncsdj) {
		this.biaozhuncsdj = biaozhuncsdj;
	}

	public String getZhongbiaojia() {
		return zhongbiaojia;
	}

	public void setZhongbiaojia(String zhongbiaojia) {
		this.zhongbiaojia = zhongbiaojia;
	}

	public String getDijia() {
		return dijia;
	}

	public void setDijia(String dijia) {
		this.dijia = dijia;
	}

	public String getToday() {
		return today;
	}

	public void setToday(String today) {
		this.today = today;
	}

	public String getZhongdiantubie() {
		return zhongdiantubie;
	}

	public void setZhongdiantubie(String zhongdiantubie) {
		this.zhongdiantubie = zhongdiantubie;
	}

	public String getBasicpolicy() {
		return basicpolicy;
	}

	public void setBasicpolicy(String basicpolicy) {
		this.basicpolicy = basicpolicy;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public PolicyLog(Long logId, String logDataer, String logTime, String logType) {
		super();
		this.logId = logId;
		this.logDataer = logDataer;
		this.logTime = logTime;
		this.logType = logType;
	}
	
	public PolicyLog setByPolicy(Policy p) {
		this.id = p.getId();
		this.province = p.getProvince();
		this.city = p.getCity();
		this.qudaolie = p.getQudaolie();
		this.terminaltype = p.getTerminaltype();
		this.product = p.getProduct();
		this.page = p.getPage();
		this.client = p.getClient();
		this.daibiao = p.getDaibiao();
		this.mgr = p.getMgr();
		this.qsterminal = p.getQsterminal();
		this.terminal = p.getTerminal();
		this.mode = p.getMode();
		this.zijingchengben = p.getZijingchengben();
		
		this.jsmode = p.getJsmode();
		this.kaipiaojia = p.getKaipiaojia();
		this.tuiguangmoney = p.getTuiguangmoney();
		this.fapiaomoney = p.getFapiaomoney();
		this.daibiaomoney = p.getDaibiaomoney();
		
		this.kaifajianlishixiang = p.getKaifajianlishixiang();
		this.kaifaMgr = p.getKaifaMgr();
		this.xieyibiaogang = p.getXieyibiaogang();
		this.kaifashixiang = p.getKaifashixiang();
		this.xieyistarttime = p.getXieyistarttime();
		this.xieyiendtime = p.getXieyiendtime();
		this.guihuanriqi = p.getGuihuanriqi();
		this.kaipiaofangshi = p.getKaipiaofangshi();
		this.shoukuangren = p.getShoukuangren();
		this.kaihuhang = p.getKaihuhang();
		this.zhanghao = p.getZhanghao();
    	return this;
	}

	public PolicyLog() {
		super();
	}

  
}